import request from '@/request'

// 查询客户列表
export const apiCustomerList = (data) =>
  request.post('/v1/proxyClient/findProxyClientConsigneeList', data)

// 新增客户 或者 给客户新增收货地址
export const apiCustomerAdd = (data) =>
  request.post('/v1/proxyClient/saveProxyClientConsignee', data)

// 删除客户的收货地址
export const apiDelCustomerAddress = (data) =>
  request.post('/v1/proxyClient/deleteProxyClientConsingee', data)

// 删除客户
export const apiDelCustomer = (data) =>
  request.post('/v1/proxyClient/deleteProxyClient', data)

// 查询详情
export const apiCustomerDetails = (data) =>
  request.post('/v1/proxyClient/queryProxyClientById', data)

// 更新客户信息或者收货地址
export const apiUpdateCustomerAddress = (data) =>
  request.post('/v1/proxyClient/updateProxyClient', data)

// 删除收获地址
export const deleteustomer = (data) =>
  request.post('/v1/proxyClient/deleteProxyClientConsingee', data)

// 编辑收货地址
export const updateCustomer = (data) =>
  request.post('/v1/proxyClient/updateProxyClientConsignee', data)
